#!/usr/bin/env python
# -*- coding: utf-8 -*-

# @Time     :2020/08/19
# @Author   :Changshu
# @File     :practice_88.py

# 88. 合并两个有序数组


def merge(nums1: list, m: int, nums2: list, n: int) -> None:
	nums1[:]=sorted(nums1[:m]+nums2)


if __name__ == '__main__':
	nums1 = [1, 2, 3, 0, 0, 0]
	m = 3

	nums2 = [2, 5, 6]
	n = 3

	merge(nums1, m, nums2, n)
	print(nums1)
